<script language="javascript" type="text/javascript">
<!--
function update_avatar(newimage)
{
	document.avatar_img.src = newimage;
}
//-->
</script>
<form method=post enctype="multipart/form-data">
<input type=hidden name=op value=update>
<input type=hidden name=alias_id value="{ALIAS_ID}">
<input type=hidden name=sid value="{SID}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr><th height="25" colspan=6 class="thHead" nowrap="nowrap">{HEADER_NAME}</th></tr>
<!-- BEGIN aliases -->
	<tr><td class="row1">Alias Name</td><td class="row2">{aliases.USER_ALIAS}</td></tr>
        <tr>
                <td class="row1" colspan="2"><table width="70%" cellspacing="2" cellpadding="0" border="0" align="center">
                        <tr>
                                <td width="65%"><span class="gensmall">{L_AVATAR_EXPLAIN}</span></td>
                                <td align="center">
					<span class="gensmall">Current Image</span><br />
					{aliases.AVATAR}<br />
					<input type="checkbox" name="avatardel" />&nbsp;<span class="gensmall">Delete Image</span>
				</td>
                        </tr>
                </table></td>
        </tr>
	<tr>
                <td class="row1"><span class="gen">Current Avatars:</span></td>
                <td class="row2">
			<select name="avatar_gallery" onchange="update_avatar(this.options[selectedIndex].value);">
			<option value="">none</a>
			<!-- BEGIN avatars -->
				<option value="{aliases.avatars.USER_AVATAR}">{aliases.avatars.USER_AVATAR}</option>
			<!-- END avatars -->
			</select> <img name=avatar_img src="{aliases.USER_AVATAR}">
		</td>
        </tr>
        <tr>
                <td class="row1"><span class="gen">Link to off-site Avatar:</span></td>
                <td class="row2"><input type="text" name="avatarremoteurl" size="40" class="post" style="width:200px" /></td>
        </tr>
<!-- END aliases -->
<tr><td class="row1" colspan=2 align=center><input type=submit></td></tr>
</table>
</form>
